package ModelLayer;


/**
 * Write a description of class Person here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Person
{
    // instance variables - replace the example below with your own
    private int id;
    private String name;
    private String address;
    private int zipCode;
    private String city;
    private String phoneNr;

    /**
     * Constructor for objects of class Person
     */
    public Person(int _id, String _name, String _address, int _zipCode, String _city, String _phoneNr)
    {
        // initialise instance variables
        id = _id;
        name = _name;
        address = _address;
        zipCode = _zipCode;
        city = _city;
        phoneNr = _phoneNr;
    }

    //Get methods
    public int getId()
    {
        return id;
    }   
    public String getName()
    {
        return name;
    }  
    public String getAddress()
    {
        return address;
    }  
    public int getZipCode()
    {
        return zipCode;
    }  
    public String getCity()
    {
        return city;
    }  
    public String getPhoneNr()
    {
        return phoneNr;
    }  
    
    //Set methods
    public void setId(int newId)
    {
        id = newId;
    }
    public void setName(String newName)
    {
        name = newName;
    }
    public void setAddress(String newAddress)
    {
        address = newAddress;
    }
    public void setZipCode(int newZipCode)
    {
        zipCode = newZipCode;
    }
    public void setCity(String newCity)
    {
        city = newCity;
    }
    public void setPhoneNr(String newPhoneNr)
    {
        phoneNr = newPhoneNr;
    }
}
